module.exports = {
  path: 'list',
  indexRoute: {
    getComponent(nextState, cb) {
      require.ensure([], (require) => {
        cb(null, require('../views/list/index').default)
      })
    }
  },
  childRoutes: [{
    path: 'detail(/:id)',
    getComponent(nextState, cb) {
      require.ensure([], (require) => {
        cb(null, require('../views/list/detail').default)
      })
    }
  },{
    path: 'map/:carNo/:orderNo/:type',
    getComponent(nextState, cb) {
      require.ensure([], (require) => {
        cb(null, require('../views/list/map').default)
      })
    }
  }]
}